package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息对象 message_info
 * 
 * @author 杨杰
 * @date 2024-03-04
 */
public class MessageInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键id")
    /** 主键id */
    private Long id;
    @ApiModelProperty(value = "标题")
    /** 标题 */
    @Excel(name = "标题")
    private String title;
    @ApiModelProperty(value = "消息内容")
    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;
    @ApiModelProperty(value = "发布地址")
    /** 发布地址 */
    @Excel(name = "发布地址")
    private String address;
    @ApiModelProperty(value = "消息状态 0未读 1已读")
    /** 消息状态 0未读 1已读 */
    @Excel(name = "消息状态 0未读 1已读")
    private String state;
    @ApiModelProperty(value = "状态（0-启用 1禁用）")
    /** 状态（0-启用 1禁用） */
    @Excel(name = "状态", readConverterExp = "0=-启用,1=禁用")
    private String enable;
    @ApiModelProperty(value = "状态（0-正常 1删除）")
    /** 状态（0-正常 1删除） */
    @Excel(name = "状态", readConverterExp = "0=-正常,1=删除")
    private String deleted;
    @ApiModelProperty(value = "角色id")
    /** 角色id */
    @Excel(name = "角色id")
    private Long roleId;
    @ApiModelProperty(value = "用户id")
    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @ApiModelProperty(value = "跳转地址")
    /** 状态（0-正常 1删除） */
    private String url;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }
    public void setDeleted(String deleted) 
    {
        this.deleted = deleted;
    }

    public String getDeleted() 
    {
        return deleted;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("address", getAddress())
            .append("state", getState())
            .append("enable", getEnable())
            .append("deleted", getDeleted())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("roleId", getRoleId())
            .append("userId", getUserId())
            .toString();
    }
}
